<%@ page contentType="text/html;charset=ISO8859_1" language="java" 
 import="git.bankview.sl.report.ReportCommon" %>

<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/struts-nested.tld" prefix="nested" %>

<jsp:useBean id="oLogon" class="git.bankview.wl.bean.LogonBean" scope="session" />
<%
	request.setAttribute("request", request);
	java.util.List oAuthMethods = git.bankview.wl.auth.UserAuth.queryMethods(oLogon, request.getParameter("transid"));
%>
<jsp:useBean id="oNavigate" class="git.bankview.wl.bean.TransNavigateBean" />
<jsp:setProperty name="oNavigate" property="transid" />

<html:html locale="true">
<head>
	<title><logic:iterate id="element" name="oNavigate" property="navigateList"
	><bean:write name="element" property="translabel" />
	 - </logic:iterate><bean:message key="reportentry.title" /></title>
	<link rel="stylesheet" href="../style/default_aux.css" id="oCssLink">
	<link rel="stylesheet" href="../style/pp.css">
	<script language="javascript" src="../script/pagetuner.js"></script>
</head>
<body onload="oninit()">
	<script src="../script/overlib.js" language="JavaScript"></script>
	<script src="../script/style.js" language="JavaScript"></script>
	<script src="../script/windows.js" language="JavaScript"></script>
	<table cellspacing="0" class="filledframe">
		<tr>
			<td nowrap="" class="clientframe">
				<table id="oHelp" class="helper" >
					<tr>
						<td width="200" class="label">&nbsp;</td>
						<td class="help"><input type="button" class="button" title="<bean:message key="common.help.title" />" onclick="help('help.report.schd');" value="<bean:message key="common.help" />" ></td>
					</tr>
				</table>
				<div class="listtitle"><logic:iterate id="element" name="oNavigate" property="navigateList"
					><logic:empty name="element" property="pageurl"><bean:write name="element" property="translabel" /></logic:empty
					><logic:notEmpty name="element" property="pageurl"><a href="<bean:write name="element" property="pageurl" />" title="<bean:write name="element" property="transid" />"><bean:write name="element" property="translabel" /></a></logic:notEmpty
					><img src="/images/navconn.gif" ></logic:iterate><bean:message key="reportentry.title" 
					/></div>

				<div class="subtitle"><bean:message key="reportentry.subtitle" />
					<br><html:errors /></div>
					
				<table id="oPropPagesTab">
					<tr><td style="padding: 50px;"><h5><bean:message key="report.pp.wait" /></h5></td></tr></table>
				<!---------------- query form properties page BEGIN ----------------->
				<div id="ppQuery" style="display: none;">
					<table width="100%" height="100%" cellspacing="0" class="formpanel">
						<tr><td class="toppad">&nbsp;</td></tr>
						<tr><td class="input">
							<html:form action="/report/SyncQueryReport" styleId="oManualForm" onsubmit="return onSubmitCheck()">
								<html:hidden property="transid" />
								<%@ include file="ParamPromptInc.jsp" %>
							</html:form>
						</td></tr>
						<tr><td class="bottompad">&nbsp;</td></tr>
					</table>
				</div>
				<!---------------- query form properties page END ----------------->
				
				<!---------------- schd history list page BEGIN ----------------->
				<div id="ppHistory" style="display: none;">
					<table width="100%" height="100%" cellspacing="0" class="formpanel">
						<tr><td class="toppad">&nbsp;</td></tr>
						<tr><td class="input">
							<iframe src="/report/ReportSchdRecList.do?ppIndex=1&sortIndexes=-1&transid=<%=request.getParameter("transid")%>"
								frameborder="0" width="100%" height="338"></iframe>
						</td></tr>
						<tr><td class="bottompad">&nbsp;</td></tr>
					</table>
				</div>
				<!---------------- schd history list page END ----------------->
			</td>
		</tr>
	</table>
	
	<iframe id="oDataGetter" style="display: none; "></iframe>
	
<script language="javascript">
function oninit()
{
	initPropertyPageTable(oPropPagesTab, 650, 380);
	addPropertyPage(oPropPagesTab, ppQuery, "<bean:message key="reportentry.prop.query" />");
	addPropertyPage(oPropPagesTab, ppHistory, "<bean:message key="reportentry.prop.history" />");
	setPropertyPageActive(oPropPagesTab, <%=null == request.getParameter("ppIndex") ? "0" : request.getParameter("ppIndex")%>);
	
	setRatioValue(oManualForm.jrExport, "HTM");
}
function onSubmitCheck()
{
	if (null == getRatioValue(oManualForm.jrExport))
	{
		alert("<bean:message key="reportSchd.err.lossSchdExport" />");
		return false;
	}
	
	return true;
}
</script>

</body>
</html:html>









